package shop.services.front.activity.impl;

import org.springframework.stereotype.Service;
import shop.core.ServicesManager;
import shop.services.front.activity.ActivityService;
import shop.services.front.activity.bean.Activity;
import shop.services.front.activity.dao.ActivityDao;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/4/21.
 */
@Service("activityServiceFront")
public class ActivityServiceImpl extends ServicesManager<Activity,ActivityDao> implements ActivityService {
    @Resource(name="activityDaoFront")
    @Override
    public void setDao(ActivityDao activityDao) {
        this.dao=activityDao;
    }

    @Override
    public List<Activity> selectActivityJoin(Activity activity) {
        return dao.selectActivityJoin(activity);
    }

    @Override
    public int selectAmount(Activity activity) {
        return dao.selectAmount(activity);
    }
}
